﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace DatabaseCore.Dto
{
    public class Atp
    {

        public Atp(DataRow dt)
        {
            if (dt == null)
            {
                return;
            }

            setdata(dt);
        }

        public string Materialno { get; set; }
        public string Plant { get; set; }
        public string StorageLocation { get; set; }
        public int URQty { get; set; }
        public int UIQty { get; set; }
        public int BlackedQty { get; set; }
        public int ATPQty { get; set; }

        private void setdata(DataRow dr)
        {
            Materialno = Convert.ToString(dr["Materialno"]);
            Plant = Convert.ToString(dr["Plant"]);
            StorageLocation = Convert.ToString(dr["StorageLocation"]);
            URQty = Convert.ToInt32(dr["URQty"]);
            UIQty = Convert.ToInt32(dr["UIQty"]);
            BlackedQty = Convert.ToInt32(dr["BlackedQty"]);
            ATPQty = Convert.ToInt32(dr["ATPQty"]);
        }
    }
}
